import request from '@/utils/request'

// 查询学生姓名列表
export function listStudent_name(query) {
  return request({
    url: '/teaching/student/list/studentName',
    method: 'get',
    params: query
  })
}
// 查询学生成绩列表
export function getStudent_scores(reportId) {
  return request({
    url: '/teaching/weekly_reports/list/getStudentScore/' + reportId,
    method: 'get',
  })
}
// 批量新增学生成绩
export function addStudent_scores(data) {
  return request({
    url: '/teaching/weekly_reports/addStudentScore',
    method: 'post',
    data: data,
  })
}
// 删除学生成绩信息等
export function deleteStudent_scores(reportId) {
  return request({
    url: '/teaching/weekly_reports/delStudentScore/' + reportId,
    method: 'delete',
  })
}


// 查询周报列表
export function listWeekly_reports(query) {
  return request({
    url: '/teaching/weekly_reports/list',
    method: 'get',
    params: query
  })
}

// 查询周报详细
export function getWeekly_reports(id) {
  return request({
    url: '/teaching/weekly_reports/' + id,
    method: 'get'
  })
}

// 新增周报
export function addWeekly_reports(data) {
  return request({
    url: '/teaching/weekly_reports',
    method: 'post',
    data: data
  })
}

// 修改周报
export function updateWeekly_reports(data) {
  return request({
    url: '/teaching/weekly_reports',
    method: 'put',
    data: data
  })
}

// 删除周报
export function delWeekly_reports(id) {
  return request({
    url: '/teaching/weekly_reports/' + id,
    method: 'delete'
  })
}
